{include file=header.html}
<!--广告图片与导航-->
{include file=top.html}
<script type="text/javascript">
var goods_ags_url = SITE_URL + '/index.php?app=goods&act=get_shipping_fee';
var shipping_id = {$goods.shipping_id};
var goods_weight = {$goods.gweight};
</script>
<!--内容-->
<div id="content" class="f-cb">
  <!--当前位置-->
  {include file=path.html}
  <div class="goods_info f-cb">
    <div class="goods_info_left">
      <!--商品信息-->
      {include file=goodsinfo.html}
    </div>
    <div class="goods_info_right">
      <!--商铺介绍-->
      {include file=store.info.html}
    </div>
    <div class="goods_info_bottom">
      <!-- {if $related_data.same_category_goods_rand4} -->
      <div class="user-more-wrap">
          <p class="user-more-t">看了又看</p>
          <ul class="user-more f-cb">
            <!-- {foreach from=$related_data.same_category_goods_rand4 item=goods_rand4} -->
            <li>
              <a href="{url app=goods&id=$goods_rand4.goods_id}" target="_blank">
                <img src="{$goods_rand4.default_image}" alt="{$goods_rand4.goods_name}" width="73" height="73" />
                <p>{$goods_rand4.price|price}</p>
              </a>
            </li>
            <!-- {/foreach} -->
          </ul>
      </div>
      <!-- {/if} -->
    </div>
  </div>
  <div id="left">
    <!--商铺分类-->
    {include file=store.category.html}
    <ul class="goods-intro-ta f-cb">
      <li class="ta-a"><a href="javascript:void(0)">最热</a></li>
      <li class="ta-b"><a href="javascript:void(0)">最新</a></li>
      <!-- {if $related_data.recommended_goods} -->
      <li class="ta-c"><a href="javascript:void(0)">商家推荐</a></li>
      <!-- {/if} -->
    </ul>
    <div class="goods-intro-ca">
      <ul>
        <!-- {foreach from=$related_data.hot_sales_goods item=hotS_goods} -->
        <li>
          <a href="{url app=goods&id=$hotS_goods.goods_id}" target="_blank" class="f-cb">
            <div class="left"><img src="{$hotS_goods.default_image}" alt="{$hotS_goods.goods_name}" width="60" height="60" /></div>
            <div class="right">
              <p class="right-a">{$hotS_goods.goods_name}</p>
              <p class="right-b">{$hotS_goods.price|price}</p>
            </div>
          </a>
        </li>
        <!-- {/foreach} -->
      </ul>
      <ul>
        <!-- {foreach from=$related_data.new_goods item=new_goods} -->
        <li>
          <a href="{url app=goods&id=$new_goods.goods_id}" target="_blank" class="f-cb">
            <div class="left"><img src="{$new_goods.default_image}" alt="{$new_goods.goods_name}" width="60" height="60" /></div>
            <div class="right">
              <p class="right-a">{$new_goods.goods_name}</p>
              <p class="right-b">{$new_goods.price|price}</p>
            </div>
          </a>
        </li>
        <!-- {/foreach} -->
      </ul>
      <!-- {if $related_data.recommended_goods} -->
      <ul>
        <!-- {foreach from=$related_data.recommended_goods item=rec_goods} -->
        <li>
          <a href="{url app=goods&id=$rec_goods.goods_id}" target="_blank" class="f-cb">
            <div class="left"><img src="{$rec_goods.default_image}" alt="{$rec_goods.goods_name}" width="60" height="60" /></div>
            <div class="right">
              <p class="right-a">{$rec_goods.goods_name}</p>
              <p class="right-b">{$rec_goods.price|price}</p>
            </div>
          </a>
        </li>
        <!-- {/foreach} -->
      </ul>
      <!-- {/if} -->
    </div>
  </div>
  <div id="right">
    <div class="goods_des_box" id="goods_des_box">
      <div class="tab_nav" id="tab_nav">
        <ul class="f-cb">
          <li class="J-taba-li active"><a href="{url app=$smarty.get.app&id=$goods.goods_id}#goods_des_box">商品信息</a></li>
          <li class="J-taba-li"><a href="{url app=$smarty.get.app&id=$goods.goods_id}#goods_des_box">累计评价{if $comment_count}({$comment_count}){/if}</a></li>
          <li class="J-taba-li"><a href="{url app=$smarty.get.app&id=$goods.goods_id}#goods_des_box">消费保障</a></li>
          <li><a href="{url app=store&id=$goods.store_id}" target="_blank">本店同类商品</a></li>
        </ul>
        <a href="javascript:void(0)" id="shop_car_b">加入购物车</a>
      </div>
      <!--商品详细-->
      <div id="des_wrap">
        <!--{if $goods._attrs}-->
        <div class="tab_con">
          <div class="tab_con_tb">产品参数：</div>
          <ul class="f-cb">
            <!--{if $goods.brand }-->
            <li>
              <span>品牌名称：</span>
              <div title="{$goods.brand|escape}">{$goods.brand|escape}</div>
            </li>
            <!--{/if}-->
            <!--{foreach from=$goods._attrs item=goods_attrs}-->
            <li>
              <span>{$goods_attrs.attr_name|escape}：</span>
              <div title="{$goods_attrs.attr_value|escape}">{$goods_attrs.attr_value|escape}</div>
            </li>
            <!--{/foreach}-->
          </ul>
          <div class="cel"></div>
        </div>
        <!--{/if}-->
        <div class="goods-view">
          {$goods.description}
          <!--{if $showroom_img}-->
            <p>
            <!--{foreach from=$showroom_img item=showroom}-->
            <img src="{$showroom}" title="" />
            <!--{/foreach}-->
            </p>
          <!--{/if}-->
        </div>
      </div>
      <div class="consum-wrap" id="J_consum">
        <img srcinit="{res file=mater/consum_01.jpg}" alt="消费保障" width="800" height="624" />
        <img srcinit="{res file=mater/consum_02.jpg}" alt="消费保障" width="800" height="657" />
        <img srcinit="{res file=mater/consum_03.jpg}" alt="消费保障" width="800" height="641" />
      </div>
      <!--商品评价-->
      {include file=goods.comments.html}
      <!--商品安全交易说明-->
      <!-- <div class="box" id="pay_wrap">
        <h3 class="title">安全交易说明</h3>
        <div class="box_txt_img f-cb"><i class="bay_l ioc_bg"></i>
          <div class="g_txt">
            <p class="hd">支付方式</p>
            <p class="bd">买家可自由选择支付方式，如网上银行、快捷支付、支付宝等。<br/>
              当买家收到货品并确认后，再由支付宝打款给供应商，如逾期未收到商品或商品不符合要求，买家可以提出退款申请以保障自身权益。</p>
            <p class="img-box"><img src="themes/store/default/styles/default/images/pay.jpg" alt=""></p>
          </div>
        </div>
        <div class="box_txt_img f-cb"><i class="safeguard_l ioc_bg"></i>
          <div class="g_txt">
            <p class="hd">保障体系</p>
            <p class="bd">万菱为买家提供交易保障，若卖家发生违约或不诚信行为，万菱将会介入交易，优先为买家保障权益。<br/>
              万菱可退换商品请客户自签收日起7日内申请退货，15日内申请换货。</p>
            <p class="img-box"><img src="themes/store/default/styles/default/images/safeguard.jpg" alt=""></p>
          </div>
        </div>
      </div> -->
      <div class="remind"><strong>温馨提示：</strong>万菱为买家提供交易保障，优先为买家保障权益。如果您对所购买的商品或服务有任何疑问，请联系万菱客服。</div>
      <ul class="goods-intro-tb f-cb">
        <li class="left">看了该商品的人还看了</li>
      </ul>
      <div class="goods-intro-cb">
        <ul class="f-cb">
          <!-- {foreach from=$related_data.out_category_goods_view_list item=oc_goods_vl} -->
          <li>
            <a href="{url app=goods&id=$oc_goods_vl.goods_id}">
              <img src="{$oc_goods_vl.default_image}" alt="{$oc_goods_vl.goods_name}" width="168" height="168" />
              <p class="title">{$oc_goods_vl.goods_name}</p>
              <p class="price">{$oc_goods_vl.price|price}</p>
            </a>
          </li>
          <!-- {/foreach} -->
        </ul>
        <!-- {if $related_data.same_category_goods_view_list} -->
        <ul class="f-cb">
          <!-- {foreach from=$related_data.same_category_goods_view_list item=sc_goods_vl} -->
          <li>
            <a href="{url app=goods&id=$sc_goods_vl.goods_id}">
              <img src="{$sc_goods_vl.default_image}" alt="{$sc_goods_vl.goods_name}" width="168" height="168" />
              <p class="title">{$sc_goods_vl.goods_name}</p>
              <p class="price">{$sc_goods_vl.price|price}</p>
            </a>
          </li>
          <!-- {/foreach} -->
        </ul>
        <!-- {/if} -->
        <div class="goods-intro-cbBtn">
            <a href="/store/{$store.store_id}/goods.html">店铺全部商品</a>
        </div>
      </div>
    </div>
  </div>
</div>
<!--底部-->
{include file=footer.html}
<script type="text/javascript" src="{lib file=json2.js}"></script>
<script type="text/javascript" src="{lib file=parabola.js}"></script>
<script type="text/javascript" src="{lib file=area_logistics.js}"></script>
<script type="text/javascript" src="{lib file=goodsinfo.js}"></script>
<script type="text/javascript">
    var $life_time='{$goods.life_time}';
    $(function() {
        /*活动倒计时*/
        if($('#second_show').length>0){
          var totalSeconds = parseInt($life_time); //倒计时总秒数量
          wl.wlTimer({
                  'intDiff': totalSeconds,
                  'daySelector': '#day_show',
                  'hourSelector': '#hour_show',
                  'minuteSelector': '#minute_show',
                  'secondSelector': '#second_show',
                  'time_format':'1',
                  'end':function(){
                      $('#J_count_time').html('优惠活动已结束');
                  }
          });
        }
    });
</script>
<!--登录弹窗-->
<script type="text/javascript" src="{lib file=jquery.plugins/jquery.validate.1_31_1.js}"></script>
<script type="text/javascript" src="{lib file=jquery.plugins/additional-methods.js}"></script>
{include file=login.popup.html}
